// 自定义插件 - 暴露对象 - install()方法
import SvgIcon from "./SvgIcon/index.vue"
import { App } from "vue"

const allGlobalComponent = {
  SvgIcon
}

export default {
  install(app: App) {
    Object.keys(allGlobalComponent).forEach(key => {
      // @ts-ignore
      app.component(key, allGlobalComponent[key])
    })
  }
}